<?php include "./view/htm/header.inc.htm"; ?>

<!--{hook index_start.htm}-->

<!-- only for screenreader  -->
<a role="button" class="sr-only sr-focusable" href="<?php echo url('thread-create-'.$fid);?>"><?php echo lang('thread_create_new');?></a>

<div class="row">
	<div class="col-lg-9">
		<div class="card p-a-sm">
		
			<table class="table table-hover threadlist">
				<thead>
					<tr>
						<th colspan="3" class="p-a-0 p-b-sm">
							<dl class="row">
								<dt class="text-nowrap">
									<?php if($gid > 0 && $gid < 5) { ?>
									<input type="checkbox" data-target='input[name="modtid"]' class="checkall m-t-sm  m-r-sm" value="" />
									<?php } ?>
									<b><?php echo lang('new_thread');?></b>
									<!--{hook index_title_lleft.htm}-->
								</dt>
								<dd>
									<!--{hook index_title_right.htm}-->
								</dd>
							</dl>
						</th>
					</tr>
				</thead>
				<tbody>
					<!--{hook index_threadlist_before.htm}-->
					<?php include './view/htm/thread_list.inc.htm';?>
					<!--{hook index_threadlist_after.htm}-->
				</tbody>
			</table>
		</div>
		<?php include './view/htm/thread_list_mod.inc.htm';?>
		<!--{hook index_page_before.htm}-->
		<nav class="text-center"><ul class="pagination"><?php echo $pagination; ?></ul></nav>
		<!--{hook index_page_end.htm.htm}-->
	</div>
	<div class="col-lg-3 hidden-md-down">
		<a role="button" class="btn btn-primary btn-block btn-sm m-b-sm hidden-md-down" href="<?php echo url('thread-create-'.$fid);?>"><?php echo lang('thread_create_new');?></a>
		<!--{hook index_site_brief_start.htm}-->
		<div class="card">
			<!--{hook index_site_brief_start.htm}-->
			<h4 class="text-center m-t-1"><?php echo $conf['sitename'];?></h4>
			<p class="m-x-1 text-middle"><?php echo $conf['sitebrief'];?></p>
			<div class="card-group card-group-nest">
				
				<div class="card">
					<div class="card-block">
						<div class="text-center text-muted text-nowrap small"><?php echo lang('threads');?></div>
						<div class="text-center text-middle text-bold"><?php echo $runtime['threads'];?></div>
					</div>
				</div>
				<div class="card">
					<div class="card-block">
						<div class="text-center text-muted text-nowrap small"><?php echo lang('posts');?></div>
						<div class="text-center text-middle text-bold"><?php echo $runtime['posts'];?></div>
					</div>
				</div>
				<div class="card">
					<div class="card-block  center-block">
						<div class="text-center text-muted text-nowrap small"><?php echo lang('users');?></div>
						<div class="text-center text-middle text-bold"><?php echo $runtime['users'];?></div>
					</div>
				</div>
				<div class="card">
					<div class="card-block center-block">
						<div class="text-center text-mutedtext-nowrap small "><?php echo lang('online');?></div>
						<div class="text-center text-middle text-bold"><?php echo $runtime['onlines'];?></div>
					</div>
				</div>
			</div>
			<!--{hook index_site_brief_end.htm}-->
		</div>
		<!--{hook index_site_brief_after.htm}-->
	</div>
</div>

<!--{hook index_end.htm}-->

<?php include "./view/htm/footer.inc.htm"; ?>

<script>
$('#nav_pc li[fid="<?php echo $fid;?>"]').tab('show');
</script>

<!--{hook index_js.htm}-->